﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI.WebControls;
using System.Web.UI;

namespace Doo.WebUI
{
    /// <summary>
    /// 表示可配置的属性
    /// </summary>
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
    public class WidgetPropertyAttribute : Attribute
    {
        /// <summary>
        /// 表示属性的名字
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 属性编辑器
        /// </summary>
        public Type EditorType { get; set; }

        public WidgetPropertyAttribute(string name)
        {
            Name = name;
        }

        public WidgetPropertyAttribute(string name, Type editorType)
        {
            Name = name;
            EditorType = editorType;
        }
    }
}
